package com.wht.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wht.domain.DtsGoodsProduct;
import com.wht.mapper.DtsGoodsProductMapper;
import com.wht.service.DtsGoodsProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wanghaotian
 * time:2022/12/05,0005 11:00
 * description:
 */

@Service
public class DtsGoodsProductServiceImpl implements DtsGoodsProductService {

    @Autowired
    private DtsGoodsProductMapper goodsProductMapper;

    @Override
    public int count() {
        QueryWrapper<DtsGoodsProduct> wrapper = new QueryWrapper<>();
        wrapper.eq("deleted",false);
        Integer count = goodsProductMapper.selectCount(wrapper);
        return count;
    }
}
